Sep 03, 2009, 05:59 AM // 05:59 | #1 |
...is in denial
Join Date: Sep 2006
Location: Hyperion
Guild: starcraft 2
Profession: P/Me
|
enchantments always whole numbers?
lets say i cast reversal of fortune (8s duration) with a 20% enchant item.
will the time be 9s (rounded down), 10s (rounded up) or 9.6s (exact)? from my testing it seems to be either rounded up or exact, but i'm not sure which one. |
Sep 03, 2009, 06:34 AM // 06:34 | #2 |
Wilds Pathfinder
Join Date: Aug 2006
Location: Chicago
Guild: LFG
Profession: R/
|
I'm pretty sure it will be rounded up to 10 seconds.
|
Sep 03, 2009, 06:40 AM // 06:40 | #3 |
Site Contributor
Join Date: Dec 2005
Location: UK
Guild: [SoF]
|
http://wiki.guildwars.com/wiki/Talk:Duration
From this link it seems that above .5 it is rounded up and below .5 it is rounded down. |
Sep 03, 2009, 11:49 AM // 11:49 | #4 |
Banned
Join Date: Sep 2007
Location: Undercity
Guild: 泰瑞亚联盟
Profession: E/
|
it rounds down i think....
say 9.9 secs, will become 9 secs i've always remembered it to be like that o.O now the above posters are really putting doubt in my mind D: |
Sep 04, 2009, 01:37 AM // 01:37 | #5 |
Forge Runner
Join Date: Nov 2006
Location: Arizona, USA
Guild: [OOP] Order of the Phoenix I
|
From a programming perspective it might be that the durations are declared as integers in which case I think it would round down to the whole number associated with it. For instance, 9.999 would still be 9, simply because the programming language only reads the number to the left of the decimal point when it is an integer.
I'm not sure though, and GW might use a different language that works differently. |
All times are GMT. The time now is 09:47 AM // 09:47.
|